<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="axios.min.js"></script>
</head>
<body>
        <button onclick="getMusic()">getMusic</button>
    <table border="1">
       <thead>
           <tr>
               <th>歌曲名称</th>
               <th>作者</th>
               <th>国家</th>
               <th>海报</th>
           </tr>
       </thead>
       <tbody id="songlist">
       </tbody>
    </table> 
</body>
<script>
    let body=document.getElementById("songlist")
function getMusic(){
    axios.get("http://localhost:3000/v1/restserver/ting?method=baidu.ting.billboard.billList&type=1&size=10&offset=0").then(function(result){
        console.log(result.data.song_list)
    })
}
</script>
</html>